<?php
// 本类由系统自动生成，仅供测试用途
class LogAction extends CommonAction {
	public function _before_index() {
		$model = M ( "Log" );
		$list = $model->getField ( 'id,username,ip,oprtype,oprcontent,time' );
		$this->assign ( 'groupList', $list );
	}
	public function _before_add() {
		$model = M ( "Log" );
		$list = $model->select ();
		$this->assign ( 'list', $list );
	}
	public function _before_edit() {
		$model = M ( "Log" );
		$list = $model->select ();
		$this->assign ( 'list', $list );
	}
	public function mylogindex(){
		$model = M ( "Log" );
// 		$list = $model->where('Log.userid=User.id')->getField ( 'id,username,ip,oprtype,oprcontent,time' );
		$list = $model->getField ( 'id,username,ip,oprtype,oprcontent,time' );
		$this->assign ( 'list', $list );
		$this->display();
	}
}